home *** CD-ROM | disk | FTP | other *** search
- Path: mn5.swip.net!usenet
- From: roland.bengtsson@mbox3.swipnet.se (Roland Bengtsson)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Something goofy with fscanf(%s) ??
- Date: 28 Jan 1996 18:43:04 GMT
- Organization: -
- Message-ID: <1065.6601T1139T1653@mbox3.swipnet.se>
- References: <4ee66r$ffk@vixen.cso.uiuc.edu>
- NNTP-Posting-Host: dialup101-102.swipnet.se
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
-
- >: I read in the old datafiles with fscanf(%d %s) as the format is;
- >:number text-string-no-spaces...
-
- >:4 http://altavista.digital.com/cgi-bin/query?pg=q&what=web&fmt=&q=%22babe004%22
- >:3 http://altavista.digital.com/cgi-bin/query?pg=q&what=web&fmt=&q=
- >: babe004
-
- >: Now what this says to me that when fscanf() hits the %22 in the string
- >:it's somehow interpreted funny and thus the second line is read back in as
- >:in the second line.
-
- What about fgets() and then process the line with sscanf() or an own function?
- I suppose you have enough buffer for the line.
-
- --
- \|/
- Thor 2.22 #1497 @ @
- +--------------------------oOO-(_)-OOo----------+
- | _ // | |
- | \X/ |Falkenberg, Westcoast of Sweden |
- |A3000/10MB | |
- |280HD/28.8 |Please write where YOU live! |
- |GVP Spectrum| |
- |AFS Pro |Amiga-Programmer in C |
- +------------+----------------------------------+
-
- --
-
-